package cn.edu.hpu.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import cn.edu.hpu.dao.DealnoteDao;
import cn.edu.hpu.pojo.Dealnote;


public class DealnoteService {
	private DealnoteDao dealnoteDao;

	
	@Autowired
	public void setDealnoteDao(DealnoteDao dealnoteDao) {
		this.dealnoteDao = dealnoteDao;
	}


	public List<Dealnote> findAll() {
		return dealnoteDao.findAll();
	}


	public void save(Dealnote dnote) {
		dealnoteDao.save(dnote);
	}


	public void delete(String id) {
		dealnoteDao.del(id);
	}


	public Dealnote findById(String id) {
		return dealnoteDao.get(id);
	}


	public void update(Dealnote dnote) {
		dealnoteDao.update(dnote);
	}
	
	
	
	
	
	
}
